"""
    一个整型数组里除了两个数字之外，其他的数字都出现了两次。请写程序找出这两个只出现一次的数字。
"""


def findNumsAppearOnce(array):
    num_count = {}
    for num in array:
        if num_count.get(num) is None:
            num_count[num] = 1
        else:
            num_count[num] += 1
    ret_list = []
    for key in num_count.keys():
        if num_count[key] == 1:
            ret_list.append(key)
    return ret_list


print(findNumsAppearOnce([2,4,3,6,3,2,5,5]))
